package com.gm.mygmc.crm.base;

import java.io.Serializable;
import java.util.Map;

/**
 * Return uniform object
 * @author daniel
 *
 */
public class ResponseDTO implements Serializable {

	private static final long serialVersionUID = 1L;
	
	
	private boolean error = false;
	private String errorCode;
	private String errorMessage;
	
	private Map<String,Object> resultMap;

	public boolean isError() {
		return error;
	}

	public void setError(boolean error) {
		this.error = error;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public Map<String, Object> getResultMap() {
		return resultMap;
	}

	public void setResultMap(Map<String, Object> resultMap) {
		this.resultMap = resultMap;
	}

	@Override
	public String toString() {
		return "ResponseDTO [error=" + error + ", errorCode=" + errorCode
				+ ", errorMessage=" + errorMessage + ", resultMap=" + resultMap
				+ "]";
	}

}
